package com.lagou.dao;

import com.lagou.pojo.User;
import java.util.List;

public interface IUserDao {

    /*查询表中所以数据*/
    public List<User> findAll() throws Exception;

    /*根据条件查询表中数据*/
    public User findByCondition(User user) throws Exception;

    /*新增用户数据*/
    public boolean insertUser(User user) throws Exception;

    /*更新用户数据*/
    public boolean updateUser(User user) throws Exception;

    /*根据id删除用户数据*/
    public boolean deleteUserById(User user) throws Exception;

}
